package com.javaProject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName message
 */
@TableName(value ="message")
@Data
public class Message implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "消息id")
    private Integer messageId;

    /**
     * 
     */
    @Schema(description = "接收者username")
    private Integer recipientId;



    @Schema(description = "标题")
    private String title;

    /**
     * 
     */
    @Schema(description = "主要内容")
    private String content;

    /**
     * 
     */
    @Schema(description = "发送时间")
    private Date timestamp;

    @Schema(description = "是否已读")
    private char isRead;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}